EmaMobile.models.CandidatModel = Ext.regModel('Candidat', {
    idProperty : 'id',
    fields : [
              { name : 'id', type : 'long' },
              { name : 'uid', type : 'string'},
              { name : 'lastname', type : 'string'},
              { name : 'firstname', type : 'string'},
              { name : 'email', type : 'string'},
              { name : 'entity_id', type : 'long'}
             ],
    associations : {type : 'belongsTo', model : 'Entity'},
/*
 * validations: [ { type: 'presence', field: 'id' }, { type: 'presence', field:
 * 'title', message: 'Please enter a title for this note.' } ]
 */
});